package com.tanjun.common.utils;

import cn.hutool.core.util.IdUtil;

public class IdGenerator {

    /**
     * 获取随机生成id
     * @return 获取随机生成id
     */
    public static Long generateLongId(){
        return IdUtil.getSnowflakeNextId();
    }

    /**
     * 获取随机生成id
     * @return 获取随机生成id
     */
    public static String generateStrId(){
        return IdUtil.getSnowflakeNextIdStr();
    }

}
